<?php
$db->query("
	CREATE TABLE IF NOT EXISTS `file_sys` (
	  `id` int(11) NOT NULL AUTO_INCREMENT,
	  `name` text NOT NULL,
	  `full_path` text NOT NULL,
	  `size` double NOT NULL,
	  `type` enum('file','direct') NOT NULL DEFAULT 'direct',
	  `parent_id` int(11) NOT NULL,
	  PRIMARY KEY (`id`),
	  KEY `parent_id` (`parent_id`)
	) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;"
)
?>